/***********************************************************************
 *            Project: CoreCms
 *        ProjectName: 核心内容管理系统                                
 *                Web: https://www.corecms.net                      
 *             Author: 大灰灰                                          
 *              Email: jianweie@163.com                                
 *         CreateTime: 2025/2/9 10:23:10
 *        Description: 暂无
 ***********************************************************************/

using SqlSugar;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace CoreCms.Net.Model.Entities
{
    /// <summary>
    /// 部门表
    /// </summary>
    public partial class CoreCmsDepartment
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public CoreCmsDepartment()
        {
        }
		
        /// <summary>
        /// id
        /// </summary>
        [Display(Name = "id")]
		
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        
        [Required(ErrorMessage = "请输入{0}")]
        
        
        
        public System.Int32 id  { get; set; }
        
		
        /// <summary>
        /// 组别表ID
        /// </summary>
        [Display(Name = "组别表ID")]
		
        
        
        
        
        public System.Int32? groupid  { get; set; }
        
		
        /// <summary>
        /// 部门名字
        /// </summary>
        [Display(Name = "部门名字")]
		
        
        
        [StringLength(maximumLength:50,ErrorMessage = "{0}不能超过{1}字")]
        
        public System.String depName  { get; set; }
        
		
        /// <summary>
        /// 默认
        /// </summary>
        [Display(Name = "默认")]
		
        
        
        
        
        public System.Boolean? isDefault  { get; set; }
        
		
        /// <summary>
        /// 是否显示
        /// </summary>
        [Display(Name = "是否显示")]
		
        
        
        
        
        public System.Boolean? isEnable  { get; set; }
        
		
        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
		
        [Required(ErrorMessage = "请输入{0}")]
        
        
        
        public System.DateTime createTime  { get; set; }
        
		
        /// <summary>
        /// 编号
        /// </summary>
        [Display(Name = "编号")]
		
        
        
        
        
        public System.Int32? number  { get; set; }
        
		
        /// <summary>
        /// 公司名称
        /// </summary>
        [Display(Name = "公司名称")]
		
        
        
        
        
        public System.Int32? companyid  { get; set; }
        
		
    }
}
